<?php 
mysql_connect("localhost","ramky123_ramky","ramky123");
	mysql_select_db("ramky123_ramky");
session_start();
$loginid=$_SESSION['loginid'];
//$time_offset ="525"; // Change this to your time zone
    //$time_a = ($time_offset * 120);
   // $last_login = date("D M j G:i:s T Y",time() + $time_a);//date("D dS M,Y h:i a");
    //echo 'Current time is : '.$last_login;
	$dateTime = new DateTime("now");
 
$dateTimeZone = new DateTimeZone('Asia/Kolkata');
$dateTime->setTimezone($dateTimeZone);
 
$datet=$dateTime->format("d-m-Y H:i:s");
	$query="UPDATE tbl_dtls_login_info SET logoff_time='$datet' WHERE logoff_time = ''";
	$result=mysql_query($query);
//session_destroy();
?>

